<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
    <title>【xxx】后台管理</title>
    <link rel="stylesheet" href=" __CONTROL_TPL__/css/add.css">
    <jquery/>
    <hdui/>
    <script  type="text/javascript">
        $(function(){
             $('.art-lisi .checkbox').click(function(){
                if($(this).val()==1){
                    $(".alone").show();
                }else{
                    $(".alone").hide();
                }  
            })
        })
    </script>
</head>
<body>
    <div id="admin">                     
        <div id="right">
            <div class="M-articless">
                <div class="top_box">
                    <h3>添加属性</h3>
                </div>
                <div class="art-lisi">
                    <!-- <div class="forMsg">操作成功信息</div> -->
                    <form action="{|U:'edit'}" method="post">
                        <input type="hidden" name="aid" value="{$field.aid}">
                        <ul>
                            <li>
                                <span >属性名称</span>
                                <input name="attr_name" class="title" type="text" value="{$field.attr_name}">
                            </li>

                            <li >
                                <span >属性类型</span>
                                <if value="{$field.attr_type}==1">
                                    <label>
                                    <input class="checkbox" name="cat_type" value="1" type="radio" checked="checked">
                                    可选属性
                                </label> 
                                <esle/>
                                     <label>
                                        <input class="checkbox" name="cat_type" value="0" type="radio" >
                                        单一属性
                                    </label> 
                                </if>
                            
                               
                            </li>
                            
                            <li class="alone">
                                <span >表单值</span>
                                <textarea name="value" class="txt" value="">{$field.value}</textarea>&nbsp;每行一个表单值
                            </li>                       
                            <li>
                                <input class="btn" type="submit" value="添加">
                            </li>
                        </ul>
                    </form>
                </div>
            </div>
        </div>       
    </div>
</body>
</html>